﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

public partial class MyApplyInfo : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //Session["person"] = "200906201001";
        if (Session["person"] == null)
        {
            this.Label1.Text = "<script>alert('请登录！');window.location.href='Default.aspx';</script>";
        }
    }

    protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
    {
        Myapply ma = new Myapply();
        e.Cancel=ma.isapply(Convert.ToInt32(GridView1.DataKeys[e.RowIndex].Value));
    }
    protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        GridView1.PageIndex = e.NewPageIndex;
        SqlDataSource1.SelectCommand = "SELECT tb_jobapply.jaid, tb_jobapply.pid, tb_jobapply.cwid, tb_jobapply.jatime, tb_jobapply.islook, tb_jobclass.jcname, tb_trade.trname, tb_company.cpname, tb_company.cpid, tb_comwant.cwname FROM tb_jobapply INNER JOIN tb_comwant ON tb_jobapply.cwid = tb_comwant.cwid INNER JOIN tb_company ON tb_comwant.cpid = tb_company.cpid INNER JOIN tb_trade ON tb_comwant.trid = tb_trade.trid INNER JOIN tb_jobclass ON tb_comwant.jcid = tb_jobclass.jcid WHERE (tb_jobapply.pid = @pid)";
    }
}
